home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
dispat.exe
/
DISPATCH.TXT
< prev
Wrap
Text File
|
1991-10-08
|
3KB
|
79 lines
Dispatch.txt
Joe McDermott oct 1991
The program 'dispatch.cpp' illustrates Borland's dispatch by value feature.
The code is similar to that found in ..\owl\source\windobj.cpp but has
been stripped down to essential details. Borland describes the use
of this feature in the "Object Windows - Programmers' Guide" pp. 16-21.
Unfortunately Borland only documented the RECEIVING side of the dispatch
but neglected to discuss the sending side. The code supporting the SEND of
a dynamic value dispatch can be found in "windobj.cpp". See lines 494ff
or search for "DispatchAMessage" The code is complex and may be difficult
to interpret.
This program "dispatch.cpp" is very simple and should pose no difficulty.
Files in zip:
dispatch.cpp - example program
dispatch.exe - compiled program (to prove that it really works !!)
dispatch.txt - this explanation
ddispatc.obj - compiled from assembler source essentially the same
as Borland's 'dd.asm'
dispatch.prj - project file
NOTE: Compile with the large model (Options, Compiler, Code generation)
and far virtual tables (Options, Compiler, C++ options)
----------------end-of-author's-documentation---------------
Software Library Information:
This disk copy provided as a service of
Public (software) Library
We are not the authors of this program, nor are we associated
with the author in any way other than as a distributor of the
program in accordance with the author's terms of distribution.
Please direct shareware payments and specific questions about
this program to the author of the program, whose name appears
elsewhere in this documentation. If you have trouble getting
in touch with the author, we will do whatever we can to help
you with your questions. All programs have been tested and do
run. To report problems, please use the form that is in the
file PROBLEM.DOC on many of our disks or in other written for-
mat with screen printouts, if possible. PsL cannot debug pro-
programs over the telephone, though we can answer questions.
Disks in the PsL are updated monthly, so if you did not get
this disk directly from the PsL, you should be aware that the
files in this set may no longer be the current versions. Also,
if you got this disk from another vendor and are having prob-
lems, be aware that some files may have become corrupted or
lost by that vendor. Get a current, working disk from PsL.
For a copy of the latest monthly software library newsletter
and a list of the 3,000+ disks in the library, call or write
Public (software) Library
P.O.Box 35705 - F
Houston, TX 77235-5705
1-800-2424-PSL
MC/Visa/AmEx/Discover
Outside of U.S. or in Texas
or for general information,
Call 1-713-524-6394
PsL also has an outstanding
catalog for the Macintosh.